import request from '@/utils/request';

export function queryProduct(params) {
  return request('/mock/queryProduct', {
    method: 'POST',
    data: params,
  });
}

export function addProduct(product) {
  return request('/mock/addProduct', {
    method: 'POST',
    data: product,
  });
}

export function updateProduct(product) {
  return request('/mock/updateProduct', {
    method: 'POST',
    data: product,
  });
}

export function deleteProduct(id) {
  return request(`/mock/deleteProduct?id=${id}`);
}
